package customerEnter.Frame.JDBCDao.SqlExecutive;

import customerEnter.Frame.DaoDataTransmission.DaoFramePameTransmission;
import customerEnter.Frame.JDBCDao.Interface.SqlExistenceResult;
import customerEnter.Frame.JDBCDao.Proxy.FrameInvocationHandler;
import customerEnter.Frame.JDBCDao.util.DaoFrameConntroller;
import customerEnter.Frame.Utils.Log4j;
import customerEnter.Frame.daoTransaction.IcyDataTemplateFactory;

@SuppressWarnings({ "rawtypes", "unchecked" })
public class SqlExistenceUpdateObject<Y> implements SqlExistenceResult {

	@Override
	public <T, K> void execuesResult(DaoFramePameTransmission<T, K> daoFramePameTransmission,
			FrameInvocationHandler frameInvocationHandler, IcyDataTemplateFactory icyDataTemplateFactory) {
		Object object = null;
		try {
			object = DaoFrameConntroller.sqlJdbcUpdate(icyDataTemplateFactory.getIcyDataTemplate(),
					daoFramePameTransmission, false);
		} catch (Exception e) {
			Log4j.setLog4j(getClass());
			Log4j.Log4JOutError(e.getMessage());
		}
		daoFramePameTransmission.getPagingParametersResult().setpObject(object);
	}

}
